
## rule to build a sample application
# $(1): the dir of sample application
# $(2): the build command
define build_sample
@if [ -d $(1) ]; then \
	echo -e "\e[0;32;1m--Compiling $(1)...\e[0;36;1m \e[0m"; \
	cd $(1); \
	$(2); \
	cd -; \
fi

endef


all:
	@echo -e "\e[0;32;1m--Compiling bsp test...\e[0;36;1m \e[0m"; 
	$(call build_sample,nvm_vendor, make)

clean:
	$(call build_sample,nvm_vendor, make clean)

	@echo -e "\e[0;32;1m--cleaning bsp test...\e[0;36;1m \e[0m"; 
